package com.winhxd.b2c.order.service.impl;

import com.winhxd.b2c.common.domain.order.model.OrderDictInfo;
import com.winhxd.b2c.common.domain.order.vo.OrderDictInfoVO;
import com.winhxd.b2c.order.dao.OrderDictInfoMapper;
import com.winhxd.b2c.order.service.OrderDictService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author wangxiaoshun
 * @date 2019/1/11 15:54
 * @Description
 */
@Service
public class OrderDictServiceImpl implements OrderDictService{
    @Autowired
    OrderDictInfoMapper orderDictInfoMapper;

    @Override
    public List<OrderDictInfoVO> selectOrderDictByType(Integer type) {
        OrderDictInfo record = new OrderDictInfo();
        record.setType(type);
        return orderDictInfoMapper.selectListByModel(record);
    }
}
